package com.rzn.reading.utils;


public class StringUtil {
    /**
     * 字符串首字母大写
     *
     * @param str 待处理的字符串
     * @return 首字母大写的字符串
     * @Author 86176
     * @Create 2021/12/22 10:33
     */
    public static String toTitle(String str) {
        char ch = str.charAt(0);
        char upperCh = (char) (ch - 32);
        return upperCh + str.substring(1);
    }
}
